pull code: support contenturl setting
authorJonathan Lebon <jlebon@redhat.com>
Thu, 11 Aug 2016 20:01:27 +0000 (16:01 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 31 Aug 2016 16:52:12 +0000 (16:52 +0000)
commit8d9d3a1d4a5a688b0a7e8dcdc1b8894e853d03e6
treec6c3289ce4b8ef58762dba134387e23e8384a385
parentdd71999dc913f4eaf862e3f5607ade2b51bcd3b3
pull code: support contenturl setting

Allow users to pass a --contenturl during `remote add` and store it in
the remote config.

Fish out the contenturl setting from the remote config and use it when
downloading static deltas and objects (except for commit signatures).
The idea here is that items in the trust chain (summary & sigs) can be
fetched from a more secure e.g. TLS-pinned location, while objects
themselves are fetched from another location. Once mirrorlist support is
added, this use-case will become even more advantageous.

Closes: #469
Approved by: cgwalters
src/libostree/ostree-repo-pull.c
src/ostree/ot-remote-builtin-add.c